##################################################################################################
# "Natural Disasters, 'Partisan Retrospection,' and U.S. Presidential Elections" #################
# Boris Heersink, Jeffrey Jenkins, Michael Olson, and Brenton Peterson ###########################
# Run All Files Script ###########################################################################
##################################################################################################

# working directory -- change this as appropriate for you

  setwd("C:/Users/michael.p.olson/Dropbox/Partisan Retrospection - Political Behavior R&R/replication_package")

# load required packages

  require(lfe)
  require(haven)
  require(stringr)
  require(DataCombine)
  require(dplyr)
  require(stargazer)
  require(ggplot2)
  require(interflex)
  require(readxl)
  require(tidyr)

# run hurricane sandy analysis file

  source("sandy_analysis.R")

# run gasper and reeves file

  source("gasper_reeves_analysis.R")

# run gasper and reeves stata file

 ### go to stata

# run gasper and reeves predicted value plot file
# uncomment this after going to stata and running the .do file

 #  source("gasper_reeves_predictedvalues.R")
